﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
namespace MRSite.Entity
{
    [Table(Name = "manager")]
    public class Manager : Entity
    {
        /// <summary>
        ///自增ID
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        ///角色ID
        /// </summary>
        [Column(Name = "role_id")]
        public int role_id { get; set; }

        /// <summary>
        ///管理员类型1超管2系管
        /// </summary>
        [Column(Name = "role_type")]
        public int role_type { get; set; }

        /// <summary>
        ///用户名
        /// </summary>
        [Column(Name = "user_name")]
        public String user_name { get; set; }

        /// <summary>
        ///登录密码
        /// </summary>
        [Column(Name = "password")]
        public String password { get; set; }

        /// <summary>
        ///6位随机字符串,加密用到
        /// </summary>
        [Column(Name = "salt")]
        public String salt { get; set; }

        /// <summary>
        ///用户昵称
        /// </summary>
        [Column(Name = "real_name")]
        public String real_name { get; set; }

        /// <summary>
        ///联系电话
        /// </summary>
        [Column(Name = "telephone")]
        public String telephone { get; set; }

        /// <summary>
        ///电子邮箱
        /// </summary>
        [Column(Name = "email")]
        public String email { get; set; }

        /// <summary>
        ///是否锁定
        /// </summary>
        [Column(Name = "is_lock")]
        public int is_lock { get; set; }

        /// <summary>
        ///添加时间
        /// </summary>
        [Column(Name = "add_time")]
        public DateTime add_time { get; set; }

    }
}
